# == Schema Information
#
# Table name: payment_histories
#
#  id           :integer          not null, primary key
#  payment_id   :integer
#  payment_type :string
#  amount       :decimal(, )
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#


class PaymentHistory < ApplicationRecord

  belongs_to :payment

  before_create :update_payment_status

  private

  def update_payment_status

  end

end
